﻿using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace KAKA.Repository
{
    public partial class Database
    {
        public Database(ConnectionString connectionString, string containerName)
            : base(connectionString.Value)
        {
            Configuration.LazyLoadingEnabled = true;
            Configuration.ProxyCreationEnabled = true;
            //Configuration.AutoDetectChangesEnabled = true;
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }
    }
}
